package com.itheima.method;

public class paixu {
    public static void main(String[] args) {

        paixu();
    }
    public static void paixu(){
        int[] arr = {33,22};
        if(arr[0] > arr[1]){
            int temp = arr[0];
            arr[0] = arr [1];
            arr[1] = temp;
            System.out.print("[");
            System.out.print(arr[0] + ",");
            System.out.println(arr[1] + "]");
        }else{
            System.out.print("[");
            System.out.print(arr[0] + ",");
            System.out.println(arr[1] + "]");
        }

    }

}
